<?php

/**
 * Aplication spesific constants.
 */

require_once('includes/Smarty/Smarty.class.php');
require_once('includes/classes/l10n.php');

// smarty configuration
class _Smarty extends Smarty { 
    function _Smarty() {
    	global $template;
		$this->template_dir = FS_ROOT . '/ui/templates/' . $template;
		$this->compile_dir = $this->template_dir . '/tmp/templates_c';
		$this->cache_dir = $this->template_dir . '/tmp/cache';
		$this->config_dir = $this->template_dir . '/tmp/configs';        
		$this->setDefaults();
    }
    
    function setDefaults() {
    	global $template;
    	$this->assign("version", VERSION);
    	$revision = substr("$Revision: 36 $", 1, -2);
    	$this->assign("revision", trim($revision));
		$this->assign("page_title", "Newarneyok Futbol Tahmin Ligi");
		$this->assign("page_subtitle", "Bence hizmet!");
		$this->assign("template", $template );
		$this->assign("template_root", $smarty->template_dir);
		$this->assign("url_home", URL_HOME);
		$this->assign("url_tpl_home", URL_HOME . TPL_HOME);
		$l10n = new l10n;
		$this->assign('l10n', $l10n);		
    }
}

$smarty = new _Smarty();

// Page header
$smarty->assign("page_title", "Newarneyok Futbol Tahmin Ligi");
$smarty->assign("page_subtitle", "Bence hizmet!");
$smarty->assign("template", $template );
$smarty->assign("template_root", $smarty->template_dir);
$smarty->assign("url_home", URL_HOME);
$smarty->assign("url_tpl_home", URL_HOME . TPL_HOME);
?>